<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width,initial-scale=1.0">
      <title>酷酷鲨项目</title>
      <link rel="stylesheet" href="https://unpkg.com/ant-design-vue@1.4.10/dist/antd.min.css" />
      <style>
      
.content-line {
  height: 25px;
  line-height: 25px;
}
.content-line-count {
  height: 35px;
  line-height: 35px;
}
.title {
  margin-top: 25px;
}
.knife4j-description {
 /*  width: 90%;
  margin: 15px auto; */
  margin-top: 5px;
}
.divider {
  margin: 4px 0;
}
.divider-count {
  margin: 8px 0;
}
.knife4j-document {
  margin-top: 30px;
}
.api-tab {
  margin-top: 15px;

  .ant-tag {
    height: 32px;
    line-height: 32px;
  }
}
.knife4j-menu-api-deprecated {
  text-decoration: line-through;
}

.knife4j-api-title {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #616368;
  height: 35px;
  line-height: 35px;
}
.knife4j-api-row {
  height: 45px;
  line-height: 45px;
}

.knife4j-api-summary {
  border-color: #49cc90;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 2px;
  cursor: pointer;
}
.knife4j-api-summary-method {
  font-size: 14px;
  font-weight: 700;
  min-width: 80px;
  padding: 6px 15px;
  text-align: center;
  border-radius: 3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  font-family: Titillium Web, sans-serif;
  color: #fff;
}
.knife4j-api-summary-path {
  font-size: 14px;
  display: flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 3 auto;
  flex: 0 3 auto;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  word-break: break-all;
  padding: 0 32px;
}

.knife4j-api-post {
  border-color: #49cc90;
  background: rgba(73, 204, 144, 0.1);
}
.knife4j-api-post .knife4j-api-summary-method {
  background: #49cc90;
}

.knife4j-api-get {
  border-color: #61affe;
  background: rgba(97, 175, 254, 0.1);
}
.knife4j-api-get .knife4j-api-summary-method {
  background: #61affe;
}
.knife4j-api-head {
  border-color: #9012fe;
  background: rgba(144, 18, 254, 0.1);
}
.knife4j-api-head .knife4j-api-summary-method {
  background: #9012fe;
}
.knife4j-api-put {
  border-color: #fca130;
  background: rgba(252, 161, 48, 0.1);
}
.knife4j-api-put .knife4j-api-summary-method {
  background: #fca130;
}
.knife4j-api-delete {
  border-color: #f93e3e;
  background: rgba(249, 62, 62, 0.1);
}
.knife4j-api-delete .knife4j-api-summary-method {
  background: #f93e3e;
}
.knife4j-api-options {
  border-color: #0d5aa7;
  background: rgba(13, 90, 167, 0.1);
}
.knife4j-api-options .knife4j-api-summary-method {
  background: #0d5aa7;
}
.knife4j-api-patch {
  border-color: #50e3c2;
  background: rgba(80, 227, 194, 0.1);
}
.knife4j-api-patch .knife4j-api-summary-method {
  background: #50e3c2;
}
#knife4jDoc ul{
  padding-left: 10px;
  list-style: none;
  counter-reset: ordered;
}

#knife4jDoc ul li:before {
  counter-increment: ordered;
  content: counters(ordered,".")" ";
  color:#1890ff;
}
.api-basic {
  padding: 11px;
}
.api-basic-title {
  font-size: 14px;
  font-weight: 700;
}
.api-basic-body {
  font-size: 14px;
  font-family: -webkit-body;
}
.knife4j-api-editor-show {
  margin: 15px 0;
  font: 100 12px/18px monaco, andale mono, courier new;
  padding: 10px 12px;
  border: #ccc 1px solid;
  border-left-width: 4px;
  background-color: #fefefe;
  box-shadow: 0 0 4px #eee;
  word-break: break-all;
  word-wrap: break-word;
  color: #444;
}
.knife4j-api-editor-show .string { color: green; }        /*字符串的样式*/
.knife4j-api-editor-show .number { color: darkorange; }    /*数字的样式*/
.knife4j-api-editor-show .boolean { color: blue; }        /*布尔型数据的样式*/
.knife4j-api-editor-show .null { color: magenta; }        /*null值的样式*/
.knife4j-api-editor-show .key { color: red; }            /*key值的样式*/
.api-description {
  border-left: 4px solid #ddd;
  line-height: 30px;
}
.api-body-desc {
  padding: 10px;
  min-height: 35px;
  box-sizing: border-box;
  border: 1px solid #e8e8e8;
}
.ant-card-body {
  padding: 5px;
}
.api-title {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  height: 30px;
  line-height: 30px;
  border-left: 4px solid #00ab6d;
  text-indent: 8px;
}
.content-line {
  height: 25px;
  line-height: 25px;
}
.content-line-count {
  height: 35px;
  line-height: 35px;
}
.divider {
  margin: 4px 0;
}
.knife4j-doc-m{
  position: fixed;
  height: 500px;
  width: 400px;
  border: 1px solid #b7b4b4;
  overflow-y: auto;
  right: 12px;
  top: 40px;
  z-index: 9999;
  background: #fcfafa;
}

      </style>
  </head>
  <body>
      <div id="knife4jDocument" class="resume_preview_page" style="margin:10px auto;width:88%">
      <div class="htmledit_views" >
        <a-row>
          <!--基础信息-->
          <a-row>
            <a-col :span="24">
              <div class="title">
                <h2>{{instance.title}}</h2>
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>简介</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.description" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>作者</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.contact" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>版本</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.version" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>host</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.host" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>basePath</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.basePath" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>服务Url</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.termsOfService" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>分组名称</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.name" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>分组url</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.url" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>分组location</h3>
                  </a-col>
                  <a-col :span="19"><span v-html="instance.location" /></a-col>
                </a-row>
                <a-divider class="divider" />
              </div>
              <div class="knife4j-description">
                <a-row class="content-line">
                  <a-col :span="5">
                    <h3>接口统计信息</h3>
                  </a-col>
                  <a-col :span="19">
                    <a-row class="content-line-count" v-for="param in instance.pathArrs" :key="param.method">
                      <a-col :span="3">
                        {{param.method}}
                      </a-col>
                      <a-col :span="2">
                        <a-tag color="#108ee9">{{param.count}}</a-tag>
                      </a-col>
                      <a-divider class="divider-count" />
                    </a-row>
                  </a-col>
                </a-row>
              </div>
            </a-col>
          </a-row>
    
          <!--目录-->
          <a-row id="knife4j-doc-m" class="knife4j-doc-m">
            <a-row style="float: right;width: 57px;z-index: 10000;overflow: hidden;">
              <a-button type="link" id="btnHide">隐藏</a-button>
            </a-row>
            <a-row v-if="hideShow" id="knife4jDoc">
              <ul>
                <li><a href="#knife4jDocument">主页</a></li>
                <li v-for="tag in tags" :key="tag.name">
                  <a :href="'#'+tag.name">{{tag.name}}</a>
                  <ul>
                    <li v-for="c in tag.childrens" :key="c.id"><a :href="'#'+c.operationId">{{c.summary}}</a></li>
                  </ul>
                </li>
              </ul>
            </a-row>
          </a-row>
          <!--分组API信息-->
          <!--遍历tags-->
          <a-row v-for="tag in tags" :key="tag.name">
            <h1 :id="tag.name">{{tag.name}}</h1>
            <div class="knife4j-document" v-for="api in tag.childrens">
              <!--接口基本信息-->
              <a-row>
                <a-row :id="api.operationId" class="knife4j-api-title">
                  <span v-if="api.deprecated" class="knife4j-menu-api-deprecated">
                    {{ api.summary }}
                  </span>
                  <span v-else>
                    {{ api.summary }}
                  </span>
                </a-row>
                <a-row :class="'knife4j-api-' + api.methodType.toLowerCase()">
                  <div class="knife4j-api-summary">
                    <span class="knife4j-api-summary-method">{{ api.methodType }}</span>
                    <span class="knife4j-api-summary-path">{{ api.showUrl }}</span>
                  </div>
                </a-row>
                <a-row class="knife4j-api-row">
                  <a-col :span="12">
                    <a-row>
                      <a-col class="api-basic-title" :span="6">请求数据类型</a-col>
                      {{ api.consumes }}
                    </a-row>
                  </a-col>
                  <a-col :span="12">
                    <a-row>
                      <a-col class="api-basic-title" :span="6">响应数据类型</a-col>
                      {{ api.produces }}
                    </a-row>
                  </a-col>
                </a-row>
              </a-row>
              <div v-if="api.author">
                <div class="api-title">
                  开发者
                </div>
                <div v-if="api.author" v-html="api.author" class="api-body-desc"></div>
              </div>
              <!--接口描述-->
              <div v-if="api.description">
                <div class="api-title">
                  接口描述
                </div>
                <div
                  v-if="api.description"
                  v-html="api.description"
                  class="api-body-desc"
                ></div>
              </div>
              <!--请求示例-->
              <div v-if="api.requestValue">
                <div class="api-title">
                  请求示例
                </div>
                <pre
                  class="knife4j-api-editor-show"
                  v-html="formaterJson(api.requestValue)"
                ></pre>
              </div>
              <div class="api-title">
              请求参数
              </div>
              <a-table default-expand-all-rows :columns="columns" :data-source="api.reqParameters"
                :row-key="genUnionTableKey"
                size="small"
                :pagination="page" >
                  <template slot="requireTemplate" slot-scope="text">
                    <span v-if="text" style="color:red">{{ text.toLocaleString() }}</span>
                    <span v-else>{{ text.toLocaleString() }}</span>
                  </template>

                  <template slot="typeTemplate" slot-scope="text">
                    <span :class="'knife4j-request-' + text">{{ text }}</span>
                  </template>

                  <template slot="datatypeTemplate" slot-scope="text, record">
                    <data-type :text="text" :record="record"></data-type>
                  </template>
              </a-table>
              <!--响应状态-->
              <div class="api-title">
                响应状态
              </div>
              <a-table
                :columns="responseStatuscolumns"
                :data-source="api.responseCodes"
                row-key="code"
                size="small"
                :pagination="page"
              >
                <template slot="descriptionTemplate" slot-scope="text">
                  <div v-html="text"></div>
                </template>
              </a-table>
              <!--响应参数-->
              <!--响应参数需要判断是否存在多个code-schema的情况-->
              <div v-if="api.multipartResponseSchema">
                <!--多个响应编码code的情况在离线文档中需要单独遍历分开-->
                <a-tabs v-for="resp in api.multipCodeDatas" :key="resp.code">
                  <a-tab-pane :tab="resp.code">
                    <!--判断响应头-->
                    <div v-if="resp.responseHeaderParameters">
                      <div class="api-title">
                        响应Header
                      </div>
                      <a-table
                        :columns="responseHeaderColumns"
                        :data-source="resp.responseHeaderParameters"
                        row-key="id"
                        size="small"
                        :pagination="page"
                      >
                      </a-table>
                    </div>
                    <!--响应参数-->
                    <div class="api-title">
                      响应参数
                    </div>
                    <a-table
                      :columns="responseParametersColumns"
                      :data-source="resp.data"
                      row-key="id"
                      size="small"
                      :pagination="page"
                    >
                    </a-table>
                    <div class="api-title">
                      响应示例
                    </div>
                    <div class="api-editor-show" v-if="resp.responseBasicType">
                      {{ resp.responseText }}
                    </div>
                    <pre
                      class="knife4j-api-editor-show"
                      v-else
                      v-html="formaterJson(resp.responseValue)"
                    ></pre>
                    <!-- <editor-show :value="resp.responseBasicType ? resp.responseText : resp.responseValue"></editor-show> -->
                    <!-- <editor :value="resp.responseBasicType ? resp.responseText : resp.responseValue" @init="multiResponseSampleEditorInit" lang="json" theme="eclipse" width="100%" :height="editorMultiHeight"></editor> -->
                  </a-tab-pane>
                </a-tabs>
              </div>
              <div v-else>
                <!--判断响应头-->
                <div v-if="api.responseHeaderParameters">
                  <div class="api-title">
                    响应Header
                  </div>
                  <a-table
                    :columns="responseHeaderColumns"
                    :data-source="api.responseHeaderParameters"
                    row-key="id"
                    size="small"
                    :pagination="page"
                  >
                  </a-table>
                </div>
                <!--响应参数-->
                <div class="api-title">
                  响应参数
                </div>
                <a-table
                  :columns="responseParametersColumns"
                  :data-source="api.multipData.data"
                  row-key="id"
                  size="small"
                  :pagination="page"
                >
                </a-table>
                <div class="api-title">
                  响应示例
                </div>
                <div class="api-editor-show" v-if="api.multipData.responseBasicType">
                  {{ api.multipData.responseText }}
                </div>
                <pre
                  class="knife4j-api-editor-show"
                  v-else
                  v-html="formaterJson(api.multipData.responseValue)"
                ></pre>
              </div>
              

            <!--接口遍历结束-->
            </div>
          </a-row>
      </a-row>

      </div>
      </div>
      <script src="https://cdn.jsdelivr.net/npm/vue@2.6.9/dist/vue.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/ant-design-vue@1.4.10/dist/antd.min.js"></script>
      <script type="text/javascript">
      function getData(){
        var datas={"instance":{"title":"酷酷鲨项目","description":"酷酷鲨项目","contact":"","version":"1.0","host":"localhost:8080","basePath":"/","termsOfService":"","name":"default","url":"/v2/api-docs","location":"/v2/api-docs","pathArrs":[{"method":"POST","count":12},{"method":"GET","count":12}]},"hideShow":true,"tags":[{"name":"分类模块管理","description":null,"order":2147483647,"author":null,"childrens":[{"id":"95a827fa474727f5d225ec21328824fe","operationId":"deleteUsingPOST_1","deprecated":false,"summary":"根据id删除分类","methodType":"POST","showUrl":"/category/delete","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"分类id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"445352a032283e8a0a5a6964fc305b77","operationId":"insertUsingPOST_1","deprecated":false,"summary":"添加分类","methodType":"POST","showUrl":"/category/insert","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"name","children":null,"description":"分类名称","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"f8ec6e495e12b68fb547327a9572c30f","operationId":"createdUsingGET_1","deprecated":false,"summary":"查询所有分类","methodType":"GET","showUrl":"/category/select","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"Category"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"分类id","id":"param6","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"name","children":null,"description":"分类名称","id":"param7","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"name\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Category","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"name\": \"\"\n\t}\n]","responseJson":[{"id":0,"name":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"分类id","txtValue":null,"enum":null,"id":"param6","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"name","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"分类名称","txtValue":null,"enum":null,"id":"param7","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"Category","responseRefParameters":[{"name":"id","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param6","name":"id","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"分类id","txtValue":null,"enum":null,"id":"param6","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"name","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"分类名称","txtValue":null,"enum":null,"id":"param7","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"8e8e28e9aaeb625d7eb746c66e5d98ee","operationId":"updateUsingPOST_1","deprecated":false,"summary":"修改分类","methodType":"POST","showUrl":"/category/update","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"category","children":null,"description":"分类对象","in":"body","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}}],"hasNew":true,"hasChanged":false},{"name":"商品模块管理","description":null,"order":2147483647,"author":null,"childrens":[{"id":"e4945464512242624de98424adb62fa2","operationId":"categoryUsingGET","deprecated":false,"summary":"根据分类id查询商品","methodType":"GET","showUrl":"/product/category","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"分类id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"ProductIndexVO"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"产品id","id":"param18","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"产品原价","id":"param19","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"产品价格","id":"param20","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"产品库存","id":"param21","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"产品标题","id":"param22","type":"string","schemaValue":null},{"name":"url","children":null,"description":"产品图片url","id":"param23","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"ProductIndexVO","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]","responseJson":[{"id":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param18","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param19","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param20","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param21","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param22","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param23","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"ProductIndexVO","responseRefParameters":[{"name":"id","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param18","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param19","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param20","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param21","name":"saleCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param18","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param19","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param20","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param21","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param22","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param23","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"2da0689ac4617f0a00a1d8907a083ffb","operationId":"deleteUsingPOST_2","deprecated":false,"summary":"根据id删除商品","methodType":"POST","showUrl":"/product/delete","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"商品id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"9b5d8447c1d9df6799ad9748b8cccc66","operationId":"detailUsingGET","deprecated":false,"summary":"根据id查询商品详情","methodType":"GET","showUrl":"/product/detail","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"商品id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"Product"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"categoryId","children":null,"description":"商品分类id","id":"param42","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"created","children":null,"description":"商品创建时间","id":"param43","type":"string(date-time)","schemaValue":"string(date-time)"},{"name":"id","children":null,"description":"商品id","id":"param44","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"num","children":null,"description":"商品库存","id":"param45","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"商品原价","id":"param46","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"商品价格","id":"param47","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"商品销量","id":"param48","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"商品标题","id":"param49","type":"string","schemaValue":null},{"name":"url","children":null,"description":"商品图片url","id":"param50","type":"string","schemaValue":null},{"name":"viewCount","children":null,"description":"商品浏览量","id":"param51","type":"integer(int32)","schemaValue":"integer(int32)"}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"categoryId\": 0,\n\t\"created\": \"\",\n\t\"id\": 0,\n\t\"num\": 0,\n\t\"oldPrice\": 0,\n\t\"price\": 0,\n\t\"saleCount\": 0,\n\t\"title\": \"\",\n\t\"url\": \"\",\n\t\"viewCount\": 0\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Product","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"categoryId\": 0,\n\t\"created\": \"\",\n\t\"id\": 0,\n\t\"num\": 0,\n\t\"oldPrice\": 0,\n\t\"price\": 0,\n\t\"saleCount\": 0,\n\t\"title\": \"\",\n\t\"url\": \"\",\n\t\"viewCount\": 0\n}","responseJson":{"categoryId":0,"created":"","id":0,"num":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":"","viewCount":0},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param42","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param43","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param44","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param45","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param46","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param47","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param48","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param49","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param50","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param51","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}],"responseParameterRefName":"Product","responseRefParameters":[{"name":"categoryId","params":[]},{"name":"created","params":[]},{"name":"id","params":[]},{"name":"num","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]},{"name":"viewCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param42","name":"categoryId","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param43","name":"created","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param44","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param45","name":"num","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param46","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param47","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param48","name":"saleCount","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param51","name":"viewCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param42","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param43","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param44","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param45","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param46","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param47","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param48","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param49","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param50","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param51","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}]}},{"id":"621b5dce6010a40570ada95b925cd1cf","operationId":"indexUsingGET","deprecated":false,"summary":"查询首页商品","methodType":"GET","showUrl":"/product/index","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"ProductIndexVO"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"产品id","id":"param62","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"产品原价","id":"param63","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"产品价格","id":"param64","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"产品库存","id":"param65","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"产品标题","id":"param66","type":"string","schemaValue":null},{"name":"url","children":null,"description":"产品图片url","id":"param67","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"ProductIndexVO","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]","responseJson":[{"id":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param62","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param63","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param64","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param65","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param66","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param67","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"ProductIndexVO","responseRefParameters":[{"name":"id","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param62","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param63","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param64","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param65","name":"saleCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param62","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param63","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param64","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param65","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param66","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param67","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"660e9e6a1e1104be595eccb90d9f7c01","operationId":"insertUsingPOST_2","deprecated":false,"summary":"添加商品","methodType":"POST","showUrl":"/product/insert","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"product","children":null,"description":"商品实体类","in":"body","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"916af76e8f4472fb05ca3afc26783d5e","operationId":"searchUsingGET","deprecated":false,"summary":"根据关键字查询商品","methodType":"GET","showUrl":"/product/search","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"wd","children":null,"description":"关键字","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"ProductIndexVO"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"产品id","id":"param76","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"产品原价","id":"param77","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"产品价格","id":"param78","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"产品库存","id":"param79","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"产品标题","id":"param80","type":"string","schemaValue":null},{"name":"url","children":null,"description":"产品图片url","id":"param81","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"ProductIndexVO","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\"\n\t}\n]","responseJson":[{"id":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param76","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param77","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param78","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param79","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param80","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param81","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"ProductIndexVO","responseRefParameters":[{"name":"id","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param76","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param77","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param78","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param79","name":"saleCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品id","txtValue":null,"enum":null,"id":"param76","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品原价","txtValue":null,"enum":null,"id":"param77","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品价格","txtValue":null,"enum":null,"id":"param78","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品库存","txtValue":null,"enum":null,"id":"param79","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品标题","txtValue":null,"enum":null,"id":"param80","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品图片url","txtValue":null,"enum":null,"id":"param81","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"d9d030da06f85ac5c865e591b122e73a","operationId":"createdUsingGET_2","deprecated":false,"summary":"查询所有商品","methodType":"GET","showUrl":"/product/select","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"Product"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"categoryId","children":null,"description":"商品分类id","id":"param88","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"created","children":null,"description":"商品创建时间","id":"param89","type":"string(date-time)","schemaValue":"string(date-time)"},{"name":"id","children":null,"description":"商品id","id":"param90","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"num","children":null,"description":"商品库存","id":"param91","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"商品原价","id":"param92","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"商品价格","id":"param93","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"商品销量","id":"param94","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"商品标题","id":"param95","type":"string","schemaValue":null},{"name":"url","children":null,"description":"商品图片url","id":"param96","type":"string","schemaValue":null},{"name":"viewCount","children":null,"description":"商品浏览量","id":"param97","type":"integer(int32)","schemaValue":"integer(int32)"}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"categoryId\": 0,\n\t\t\"created\": \"\",\n\t\t\"id\": 0,\n\t\t\"num\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\",\n\t\t\"viewCount\": 0\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Product","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"categoryId\": 0,\n\t\t\"created\": \"\",\n\t\t\"id\": 0,\n\t\t\"num\": 0,\n\t\t\"oldPrice\": 0,\n\t\t\"price\": 0,\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\",\n\t\t\"url\": \"\",\n\t\t\"viewCount\": 0\n\t}\n]","responseJson":[{"categoryId":0,"created":"","id":0,"num":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":"","viewCount":0}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param88","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param89","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param90","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param91","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param92","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param93","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param94","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param95","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param96","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param97","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}],"responseParameterRefName":"Product","responseRefParameters":[{"name":"categoryId","params":[]},{"name":"created","params":[]},{"name":"id","params":[]},{"name":"num","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]},{"name":"viewCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param88","name":"categoryId","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param89","name":"created","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param90","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param91","name":"num","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param92","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param93","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param94","name":"saleCount","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param97","name":"viewCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param88","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param89","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param90","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param91","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param92","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param93","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param94","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param95","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param96","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param97","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}]}},{"id":"5328e2a694977a8846529c544ebcc1fc","operationId":"selectByIdUsingGET_1","deprecated":false,"summary":"根据id查询商品","methodType":"GET","showUrl":"/product/selectById","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"商品id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"Product"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"categoryId","children":null,"description":"商品分类id","id":"param109","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"created","children":null,"description":"商品创建时间","id":"param110","type":"string(date-time)","schemaValue":"string(date-time)"},{"name":"id","children":null,"description":"商品id","id":"param111","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"num","children":null,"description":"商品库存","id":"param112","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"oldPrice","children":null,"description":"商品原价","id":"param113","type":"number(double)","schemaValue":"number(double)"},{"name":"price","children":null,"description":"商品价格","id":"param114","type":"number(double)","schemaValue":"number(double)"},{"name":"saleCount","children":null,"description":"商品销量","id":"param115","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"商品标题","id":"param116","type":"string","schemaValue":null},{"name":"url","children":null,"description":"商品图片url","id":"param117","type":"string","schemaValue":null},{"name":"viewCount","children":null,"description":"商品浏览量","id":"param118","type":"integer(int32)","schemaValue":"integer(int32)"}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"categoryId\": 0,\n\t\"created\": \"\",\n\t\"id\": 0,\n\t\"num\": 0,\n\t\"oldPrice\": 0,\n\t\"price\": 0,\n\t\"saleCount\": 0,\n\t\"title\": \"\",\n\t\"url\": \"\",\n\t\"viewCount\": 0\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Product","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"categoryId\": 0,\n\t\"created\": \"\",\n\t\"id\": 0,\n\t\"num\": 0,\n\t\"oldPrice\": 0,\n\t\"price\": 0,\n\t\"saleCount\": 0,\n\t\"title\": \"\",\n\t\"url\": \"\",\n\t\"viewCount\": 0\n}","responseJson":{"categoryId":0,"created":"","id":0,"num":0,"oldPrice":0,"price":0,"saleCount":0,"title":"","url":"","viewCount":0},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param109","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param110","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param111","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param112","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param113","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param114","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param115","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param116","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param117","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param118","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}],"responseParameterRefName":"Product","responseRefParameters":[{"name":"categoryId","params":[]},{"name":"created","params":[]},{"name":"id","params":[]},{"name":"num","params":[]},{"name":"oldPrice","params":[]},{"name":"price","params":[]},{"name":"saleCount","params":[]},{"name":"viewCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param109","name":"categoryId","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param110","name":"created","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param111","name":"id","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param112","name":"num","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param113","name":"oldPrice","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param114","name":"price","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param115","name":"saleCount","params":[],"level":1,"childrenTypes":[]},{"init":false,"id":"param118","name":"viewCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"categoryId","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品分类id","txtValue":null,"enum":null,"id":"param109","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"created","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string(date-time)","in":null,"schema":true,"schemaValue":"string(date-time)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品创建时间","txtValue":null,"enum":null,"id":"param110","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["string(date-time)"]},{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品id","txtValue":null,"enum":null,"id":"param111","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"num","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品库存","txtValue":null,"enum":null,"id":"param112","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"oldPrice","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品原价","txtValue":null,"enum":null,"id":"param113","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"price","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"number(double)","in":null,"schema":true,"schemaValue":"number(double)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品价格","txtValue":null,"enum":null,"id":"param114","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["number(double)"]},{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品销量","txtValue":null,"enum":null,"id":"param115","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品标题","txtValue":null,"enum":null,"id":"param116","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品图片url","txtValue":null,"enum":null,"id":"param117","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"viewCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"商品浏览量","txtValue":null,"enum":null,"id":"param118","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]}]}},{"id":"f4b75c1d7ad510af74a0bd41a50fa30d","operationId":"topUsingGET","deprecated":false,"summary":"查询首页商品","methodType":"GET","showUrl":"/product/top","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"ProductTopVO"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"saleCount","children":null,"description":"产品销量","id":"param131","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"title","children":null,"description":"产品名称","id":"param132","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"ProductTopVO","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"saleCount\": 0,\n\t\t\"title\": \"\"\n\t}\n]","responseJson":[{"saleCount":0,"title":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品销量","txtValue":null,"enum":null,"id":"param131","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品名称","txtValue":null,"enum":null,"id":"param132","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"ProductTopVO","responseRefParameters":[{"name":"saleCount","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param131","name":"saleCount","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"saleCount","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品销量","txtValue":null,"enum":null,"id":"param131","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"title","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"产品名称","txtValue":null,"enum":null,"id":"param132","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"05acac8f768db9d1d3374c060dc2bc79","operationId":"updateUsingPOST_2","deprecated":false,"summary":"更新商品","methodType":"POST","showUrl":"/product/update","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"product","children":null,"description":"商品实体类","in":"body","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}}],"hasNew":true,"hasChanged":false},{"name":"本地资源上传模块管理","description":null,"order":2147483647,"author":null,"childrens":[{"id":"15d5b57dc670626859c3cc603c10e1de","operationId":"removeUsingPOST","deprecated":false,"summary":"图片缓存资源删除","methodType":"POST","showUrl":"/remove","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"url","children":null,"description":"图片url","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"b5ce9461e5ada74378a6addc1657051f","operationId":"uploadUsingPOST","deprecated":false,"summary":"图片资源上传","methodType":"POST","showUrl":"/upload","consumes":["multipart/form-data"],"produces":["*/*"],"author":null,"description":"<p>前端返回的picFile是一个MultipartFile的对象，需要将客户端的图片资源复制到服务器本地（/cs_maven_directory_name/src/main/resources/static/imgs/Xxx.xxx）,返回的url格式应为/imgs/xxx.xxx用于图片预览(代码在前端index.html中)</p>\n","requestValue":null,"reqParameters":[{"name":"picFile","children":null,"description":"图片文件","in":"formData","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}}],"hasNew":true,"hasChanged":false},{"name":"用户模块管理","description":null,"order":2147483647,"author":null,"childrens":[{"id":"dff30e14e14a6d2fa89a97788616ddc2","operationId":"getCurrentUserUsingGET","deprecated":false,"summary":"获取当前用户信息","methodType":"GET","showUrl":"/currentUser","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"UserVO"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"用户id","id":"param140","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"nickname","children":null,"description":"用户昵称","id":"param141","type":"string","schemaValue":null},{"name":"password","children":null,"description":"用户名","id":"param142","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"id\": 0,\n\t\"nickname\": \"\",\n\t\"password\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"UserVO","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"id\": 0,\n\t\"nickname\": \"\",\n\t\"password\": \"\"\n}","responseJson":{"id":0,"nickname":"","password":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户id","txtValue":null,"enum":null,"id":"param140","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"nickname","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户昵称","txtValue":null,"enum":null,"id":"param141","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"password","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户名","txtValue":null,"enum":null,"id":"param142","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"UserVO","responseRefParameters":[{"name":"id","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param140","name":"id","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户id","txtValue":null,"enum":null,"id":"param140","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"nickname","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户昵称","txtValue":null,"enum":null,"id":"param141","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"password","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"用户名","txtValue":null,"enum":null,"id":"param142","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"9fed40d0b4a271056d62f4f5fd320f67","operationId":"loginUsingPOST","deprecated":false,"summary":"用户登录","methodType":"POST","showUrl":"/login","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"userDTO","children":null,"description":"用户信息","in":"body","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"71c9f52556a337ac062c51190bc27bdc","operationId":"logoutUsingGET","deprecated":false,"summary":"退出登录","methodType":"GET","showUrl":"/logout","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}}],"hasNew":true,"hasChanged":false},{"name":"轮播图模块管理","description":null,"order":2147483647,"author":null,"childrens":[{"id":"74e6f5d6c978fed8f76ba0adfd501be7","operationId":"deleteUsingPOST","deprecated":false,"summary":"根据id删除轮播图","methodType":"POST","showUrl":"/banner/delete","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"<p>同时删除服务器端的图片资源</p>\n","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"轮播图id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"bca5c6712f65af40342becfc8d1c41c6","operationId":"insertUsingPOST","deprecated":false,"summary":"插入轮播图","methodType":"POST","showUrl":"/banner/insert","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"url","children":null,"description":"上传得到的轮播图url","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}},{"id":"da524ff4151f2a496eb1e082d7298106","operationId":"createdUsingGET","deprecated":false,"summary":"查询所有轮播图","methodType":"GET","showUrl":"/banner/select","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"<p>返回Banner实体类的List集合</p>\n","requestValue":null,"reqParameters":null,"responseCodes":[{"code":"200","description":"OK","schema":"Banner"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"轮播图id","id":"param151","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"url","children":null,"description":"轮播图url","id":"param152","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"url\": \"\"\n\t}\n]"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Banner","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"[\n\t{\n\t\t\"id\": 0,\n\t\t\"url\": \"\"\n\t}\n]","responseJson":[{"id":0,"url":""}],"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图id","txtValue":null,"enum":null,"id":"param151","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图url","txtValue":null,"enum":null,"id":"param152","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"Banner","responseRefParameters":[{"name":"id","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param151","name":"id","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图id","txtValue":null,"enum":null,"id":"param151","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图url","txtValue":null,"enum":null,"id":"param152","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"4256b66705c9ec875a4a78afd0349913","operationId":"selectByIdUsingGET","deprecated":false,"summary":"根据id查询轮播图","methodType":"GET","showUrl":"/banner/selectById","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"id","children":null,"description":"轮播图id","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"Banner"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"id","children":null,"description":"轮播图id","id":"param156","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"url","children":null,"description":"轮播图url","id":"param157","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"id\": 0,\n\t\"url\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"Banner","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"id\": 0,\n\t\"url\": \"\"\n}","responseJson":{"id":0,"url":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图id","txtValue":null,"enum":null,"id":"param156","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图url","txtValue":null,"enum":null,"id":"param157","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"Banner","responseRefParameters":[{"name":"id","params":[]}],"responseTreetableRefParameters":[{"init":false,"id":"param156","name":"id","params":[],"level":1,"childrenTypes":[]}],"data":[{"name":"id","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图id","txtValue":null,"enum":null,"id":"param156","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"url","ignoreFilterName":null,"deprecated":false,"allowEmptyValue":false,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"轮播图url","txtValue":null,"enum":null,"id":"param157","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"5d08c58001cc53af286f8edaa3346092","operationId":"updateUsingPOST","deprecated":false,"summary":"更新轮播图","methodType":"POST","showUrl":"/banner/update","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"banner","children":null,"description":"轮播图对象","in":"body","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":null},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":null,"responseHeaderParameters":null,"multipData":{}}],"hasNew":true,"hasChanged":false}]};
        //console(datas);
        return datas;
      }

      function main(){
        //当前接口json数据
        var d=getData();
        //请求参数table-header
        const requestcolumns = [
          {
            title: "参数名称",
            dataIndex: "name",
            width: "30%"
          },
          {
            title: "参数说明",
            dataIndex: "description",
            width: "25%"
          },
          {
            title: "请求类型",
            dataIndex: "in",
            scopedSlots: { customRender: "typeTemplate" }
          },
          {
            title: "是否必须",
            dataIndex: "require",
            scopedSlots: { customRender: "requireTemplate" }
          },
          {
            title: "数据类型",
            dataIndex: "type",
            scopedSlots: { customRender: "datatypeTemplate" }
          },
          {
            title: "schema",
            dataIndex: "schemaValue",
            width: "15%"
          }
        ];
        //响应状态table-header
        const responseStatuscolumns = [
          {
            title: "状态码",
            dataIndex: "code",
            width: "20%"
          },
          {
            title: "说明",
            dataIndex: "description",
            width: "55%",
            scopedSlots: { customRender: "descriptionTemplate" }
          },
          {
            title: "schema",
            dataIndex: "schema"
          }
        ];
        //响应头-header
        const responseHeaderColumns = [
          {
            title: "参数名称",
            dataIndex: "name",
            width: "30%"
          },
          {
            title: "参数说明",
            dataIndex: "description",
            width: "55%"
          },
          {
            title: "数据类型",
            dataIndex: "type"
          }
        ];
        const responseParametersColumns = [
          {
            title: "参数名称",
            dataIndex: "name",
            width: "35%"
          },
          {
            title: "参数说明",
            dataIndex: "description",
            width: "40%"
          },
          {
            title: "类型",
            dataIndex: "type"
          },
          {
            title: "schema",
            dataIndex: "schemaValue",
            width: "15%"
          }
        ];
        //dataType组件
        var dataType={
          name: "DataType",
          props: {
            text: {
              type: String,
              required: true
            },
            record: {
              type: Object,
              required: true
            }
          },
          data:function(){
            return {
               validators: []
            }
          },
          created() {
            this.intiValidator();
          },
          methods: {
            intiValidator() {
              var that = this;
              const record = this.record;
              if (record.validateInstance != null) {
                var len = that.getJsonKeyLength(record.validateInstance);
                var _size = 0;
                for (var k in record.validateInstance) {
                  var str = k + ":" + record.validateInstance[k];
                  that.validators.push({ key: k, val: str });
                }
              }
            },
            getJsonKeyLength(json) {
              var size = 0;
              if (json != null) {
                for (var key in json) {
                  if (json.hasOwnProperty(key)) size++;
                }
              }
              return size;
            }
          },
          template:'<div><span v-if="!record.validateStatus">{{text}}</span><span v-else class="knife4j-request-validate-jsr"><a-tooltip placement="right"><template slot="title"><div v-for="pt in validators" :key="pt.key">{{pt.val}}</div></template>{{text}}</a-tooltip></span></div>'

        }
        var data={
          tags:d.tags,
          instance:d.instance,
          columns: requestcolumns,
          responseHeaderColumns: responseHeaderColumns,
          responseStatuscolumns: responseStatuscolumns,
          responseParametersColumns: responseParametersColumns,
          expanRows: true,
          //接收一个响应信息对象,遍历得到树形结构的值
          multipCode: false,
          multipCodeDatas: [],
          multipData: {},
          page: false,
          hideShow:true
        }
        new Vue({
          el:"#knife4jDocument",
          components:{
            "DataType":dataType
          },
          data(){
            return data
          },
          mounted(){
             //初始化完成
            //赋予点击事件;
            document.getElementById("btnHide").addEventListener("click",function(){
              //隐藏目录
              var doc=document.getElementById("knife4jDoc");
              var docGlobal=document.getElementById("knife4j-doc-m");
              if(doc.style.display=="none"){
                doc.style.display="";
                document.getElementById("btnHide").innerHTML="隐 藏";
                docGlobal.style.width="400px";
                docGlobal.style.height="500px";
              }else{
                doc.style.display="none";
                document.getElementById("btnHide").innerHTML="目 录";
                docGlobal.style.width="52px";
                docGlobal.style.height="35px";
              }
            })
          },
          created(){
           
          },
          methods:{
            genUnionTableKey() {
              var key="param"+new Date().getTime().toString() + Math.floor(Math.random() * 1000000).toString();
              return key;
            },
            formaterJson(json) {
              try {
                if (typeof json != "string") {
                  json = JSON.stringify(json, undefined, 2);
                }
                json = json
                  .replace(/&/g, "&")
                  .replace(/</g, "<")
                  .replace(/>/g, ">");
                return json.replace(
                  /("(\u[a-zA-Z0-9]{4}|\[^u]|[^\"])*"(s*:)?|(true|false|null)|-?d+(?:.d*)?(?:[eE][+-]?d+)?)/g,
                  function(match) {
                    var cls = "number";
                    if (/^"/.test(match)) {
                      if (/:$/.test(match)) {
                        cls = "key";
                      } else {
                        cls = "string";
                      }
                    } else if (/true|false/.test(match)) {
                      cls = "boolean";
                    } else if (/null/.test(match)) {
                      cls = "null";
                    }
                    return '<span class="' + cls + '">' + match + "</span>";
                  }
                );
              } catch (error) {
                return json;
              }
            }
          }
        })

      }

      main();
      
      
    </script>
  </body>
  </html>